package com.cy.law.db.dao;

import com.cy.law.db.entity.Human;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface HumanDao extends JpaRepository<Human, Integer> {

    Human findFirstByHumanNameAndPassword(String name, String pwd);

    Human findFirstByHumanName(String name);

    Human findFirstByHumanCodeAndPassword(String code, String pwd);

    List<Human> findAllByIsLawPerson(int is);
}
